Skip to content

Support animated WebP conversion - #545

Open
rob93c wants to merge 3 commits into
mainfrom
support-animated-webp-conversion
Open

Support animated WebP conversion#545
rob93c wants to merge 3 commits into
mainfrom
support-animated-webp-conversion

Conversation

@rob93c

@rob93c rob93c commented Aug 11, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Added support for converting animated WebP files into WebM videos.
    • Animated WebP files can now be converted concurrently.
  • Bug Fixes

    • Improved detection of supported image and video formats.
    • Animated WebP conversions now produce valid WebM video output with the expected properties.
    • Updated supported-format responses to display the complete list correctly.

@rob93c rob93c self-assigned this Aug 11, 2026
@rob93c rob93c added the enhancement New feature or request label Aug 11, 2026
@rob93c rob93c linked an issue Aug 11, 2026 that may be closed by this pull request
@rob93c rob93c added the unit test This marks issues revolving around unit tests label Aug 11, 2026
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 6cd77128-e3f9-495a-a559-0ce1d534160b

📥 Commits

Reviewing files that changed from the base of the PR and between a30b81f and 1680db7.

📒 Files selected for processing (1)
  • src/main/java/com/github/stickerifier/stickerify/telegram/Answer.java

📝 Walkthrough

Walkthrough

Animated WebP files with the extended format and animation flag are detected as videos. Image detection now uses MIME types only. Tests validate sequential and concurrent conversion to WebM.

Changes

Animated WebP support

Layer / File(s) Summary
File-aware media detection
src/main/java/com/github/stickerifier/stickerify/media/MediaHelper.java, src/main/java/com/github/stickerifier/stickerify/telegram/Answer.java
Video detection inspects animated WebP headers. Image detection uses only the MIME type and no longer excludes animated WebP files. The supported-format table columns are widened without changing their values.
Animated WebP conversion validation
src/test/java/com/github/stickerifier/stickerify/media/MediaHelperTest.java
Tests validate a 512×512 VP9 WebM result and concurrent animated WebP conversion.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding support for animated WebP conversion.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@rob93c
rob93c marked this pull request as ready for review August 12, 2026 12:34
@rob93c
rob93c requested a review from MartelliEnrico August 12, 2026 12:34
@rob93c

rob93c commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

TODO: add animated WebP among supported video formats in the proper Answer.
EDIT: done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request unit test This marks issues revolving around unit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support animated WebP conversion

1 participant